import math;
def my_abs(x):
    if not isinstance(x,(int,float)):
        raise TypeError("bad type");
    if x > 0:
        return x;
    else:
        return -x;


print(my_abs(-19999));


#定义一个空的函数
def nop():
    pass


#my_abs('x')


def move(x,y,step,angle=0):
    newx = x + step * math.cos(angle)
    newy = y + step * math.sin(angle)
    return newx,newy;


r = move(100,100,60,math.pi/6);

print(r);






